﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="ListVersion.aspx.cs" Inherits="ListVersion" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="post">
        <h2 class="title">
            <a href="#">Viện ÐH Mở Hà Nội -> Quản trị kinh doanh -> Toán cao cấp 1 </a>
        </h2>
        <p class="meta">
            <span class="date">Môn học: Toán cao cấp 1</span></p>
        <div style="clear: both;">
            &nbsp;<asp:Button ID="Button1" runat="server" Text="Thêm mới" Width="80px" 
                Height="30px" onclick="Button1_Click" />
            <asp:Button ID="Button2" runat="server" Text="Xuất Excel" Width="80px" 
                Height="30px" />
        </div>
        <div class="entry">
            
        <asp:GridView ID="gvVersion" runat="server" AutoGenerateColumns="False" 
                Width="100%" AllowPaging="True"  Font-Size="10pt" BackColor="White" 
                BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3">
        <FooterStyle BackColor="White" ForeColor="#000066" />
        <RowStyle ForeColor="#000066" Height="5px" />
        <Columns>        
            <asp:TemplateField HeaderText="Tên sản phẩm">
                <ItemTemplate>
                    <asp:Label ID="lblTitle" runat="server" Text='<%# Eval("TEN_SAN_PHAM") %>'></asp:Label>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Left" BorderStyle="None" VerticalAlign="Middle" />
                <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Phiên bản">
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("TEN_VERSION") %>'></asp:Label>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Justify" BorderStyle="None" VerticalAlign="Middle" />
                <ItemStyle HorizontalAlign="Justify" VerticalAlign="Middle" />
            </asp:TemplateField>
            <asp:BoundField DataField="NGAY_CAP" HeaderText="Ngày cấp" DataFormatString="{0:dd/MM/yyyy}">
                <HeaderStyle HorizontalAlign="Justify" VerticalAlign="Middle" Width="120px" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="GHI_CHU" HeaderText="Ghi chú" >
                <HeaderStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="120px" />
                <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
           
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:ImageButton ID="imgBtEdit" runat="server" CommandArgument='<%# Eval("Id") %>'
                        CommandName="EDIT" ImageUrl="~/Images/edit.gif" />
                    <asp:ImageButton ID="imgBtDelete" runat="server" CommandArgument='<%# Eval("Id") %>'
                        CommandName="DEL" ImageUrl="~/Images/delete.gif" />
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Left" Width="50px" />
                <ItemStyle HorizontalAlign="Left" Width="50px" />
            </asp:TemplateField>
        </Columns>
        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" Height="30px" />

    </asp:GridView>
        </div>
    </div>
</asp:Content>
